<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:s="http://jboss.org/schema/seam/taglib"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

   <head>
      <title>Register New User</title>
   </head>
   <body>
      <f:view>
         <h:form id="registration">
            <s:validateAll>
               <h:panelGrid columns="2">
                  Username: <h:inputText id="username" value="#{user.username}" required="true"/>
                  Real Name: <h:inputText id="name" value="#{user.name}" required="true"/>
                  Password: <h:inputSecret id="password" value="#{user.password}" required="true"/>
               </h:panelGrid>
            </s:validateAll>
            <h:messages id="messages"/>
            <h:commandButton id="register" value="Register" action="#{register.register}"/>
         </h:form>
      </f:view>
   </body>

</html>
